include(${CMAKE_SOURCE_DIR}/llvm_ide_common.cmake)
require_gtk_headers()
require_gtk_lib_path()

IF(MSVC)
	SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /ENTRY:mainCRTStartup ")
ENDIF(MSVC)

set(GTK_SOURCE gtk-Main.cpp )

add_executable(gtk-IDE WIN32 MACOSX_BUNDLE	${GTK_SOURCE} )

target_link_libraries(gtk-IDE gtk-win32-2.0 gobject-2.0 glib-2.0)

install(TARGETS gtk-IDE RUNTIME DESTINATION ${CMAKE_SOURCE_DIR}/bin )
